﻿using System;
using DearLee.Toolkit.Reflection;

namespace Web {

  public partial class T_System_Reflection : System.Web.UI.Page {

    protected void Page_Load(object sender, EventArgs e) {

      if (!IsPostBack) {

        User obj = null;

        obj = new User { 
          UserId = 1,
          Username = "Leehyo1ee",
          Passwrod = "I love you"
        };

        Response.Write(ReflectionHelper.ToStringForWeb(obj));
      }
    }
  }

  public class User {

    public int UserId { get; set; }
    public string Username { get; set; }
    public string Passwrod { get; set; }
  }
}